﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="d" uri="/WEB-INF/resource.tld" %>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  
</head>

<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <%@ include file="/WEB-INF/include/menu.jsp"%>
  
  <div class="container main-content">

    <div class="panel panel-default x-panel x-panel-layout">

      <div class="panel-heading">
        <ol class="breadcrumb">
          <li><a href="${ctx.host}/ecommerce">打卡管理</a></li>
          <li class="active">打卡用户</li>
          <li class="no-before pull-right" style="min-width: 65px;">
            <a onclick="window.history.back();"><i class="glyphicon glyphicon-arrow-left"></i>&nbsp;&nbsp;返回</a>
          </li>
        </ol>
      </div>

      <div class="panel-body">

        <div class="col-xs-2 x-panel-layout-left no-horizontal-padding">
          <%@ include file="/WEB-INF/include/submenu.jsp"%>
        </div>

        <div class="col-xs-10 x-panel-layout-right">

          <div class="x-breadcrumb-wrapper">
            <div class="x-breadcrumb clearfix">
              <h2><i class="glyphicon glyphicon-fire" title="用户详情"></i>&nbsp;&nbsp;<span>打卡用户&nbsp;-&nbsp;用户详情</span></h2>
            </div>
          </div>
          
          <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
          
            <div class="x-breadcrumb-wrapper top-margin-20" style="position: relative;">
              <ul class="nav nav-pills x-breadcrumb-nav">
                <li class="pull-left active"><a href="javascript:void(0);">基本信息</a></li>
              </ul>
            </div>
          
          <div class="clearfix">
            <div class="form-horizontal">

              <div class="form-group">
                <label class="control-label col-xs-2">姓名：</label>
                <div class="col-xs-4 pull-left">
                  <p class="form-control-static">${user.name}</p>
                </div>
                <label class="control-label col-xs-2">手机号：</label>
                <div class="col-xs-4 pull-left">
                  <p class="form-control-static">${user.mobile}</p>
                </div>
              </div>
                
              <div class="form-group">
                <label class="control-label col-xs-2">已打卡：</label>
                <div class="col-xs-4 pull-left">
                  <p class="form-control-static">${courseRound.signinDays}天/${courseRound.signinMinutes}分</p>
                </div>
                <label class="control-label col-xs-2">坚持打卡：</label>
                <div class="col-xs-4 pull-left">
                  <p class="form-control-static">${courseRound.insistDays}天</p>
                </div>
              </div>
              
            </div>
  
          </div>
          
          <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
            <div class="x-breadcrumb yellow clearfix">
              <h2>
                <span>积分详情</span>
              </h2>
            </div>
          </div>
          
          <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
            <thead>
              <tr>
                <th>时间</th>
                <th>积分</th>
                <th>描述</th>
              </tr>
            </thead>
            <tbody>
              <c:forEach var="creditRecord" items="${creditRecords}">
                <tr>
                  <td><fmt:formatDate value="${creditRecord.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                  <td>${creditRecord.credit}</td>
                  <td>${creditRecord.description}</td>
                </tr>
              </c:forEach>
            </tbody>
          </table>
          
        </div>
          
        </div>

      </div>

    </div>
    </div>

</body>

</html>
